<%= form_for(@missao) do |f| %>
  <% if @missao.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@missao.errors.count, "error") %> prohibited this missao from being saved:</h2>

      <ul>
      <% @missao.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
  
  <div class="field">
    <%= f.label :nome %><br />
    <%= f.text_field :nome %>
  </div>
  <div class="field">
    <%= f.label :descricao %><br />
    <%= f.text_area :descricao, :rows => 3 %>
  </div>
  
  <div class="actions">
    <%= submit_tag 'Criar', :class => 'submit' %>
  </div>
<% end %>